#include "bflb_mtimer.h"
#include "board.h"
#include "bflb_gpio.h"
#include "TM1637.h"

int main(void)
{
    board_init();
    TM1637_init();
	unsigned char index = 0;
	unsigned char flag = 0x01;
    while (1)
    {
		TM1637_display(index, index+1, index+2, index+3, flag, LEVEL2);
		flag = !flag;
		index += 4;
		bflb_mtimer_delay_ms(2000);
		if(index == 20)
		{
			index = 0;
			TM1637_display(20, 21, 21, 21, flag, LEVEL8);
		}
		bflb_mtimer_delay_ms(2000);
    }
}
